$(document).ready(function(){
	$("#edit_vali").validate({
	
    errorClass: 'shower',

	rules:{		
			story_name:{
						required: true  
						},
			file_location: {
						required: true
						},
			keyword: {
						required: true
						},
				username:	{
						required: true
						}
					},				
	messages:{		
			story_name:{
						required: "<li>Please enter Name</li>"
							 },
			file_location:{
						required: "<li>Please enter File Location</li>"
							},
			keyword:{
						required: "<li>Please enter Text</li>"
							},
				username:{
						required: "<li>Please enter Username</li>"
							 }					
				}
					   
	});

	$('.hdd').each(function() {
		$(this).rules('add', {
		required: true,
		messages: {
		required: "<li>Please select Harddisk</li>",
		}
		});
		});

$('.episode').each(function() {
$(this).rules('add', {
required: true,
messages: {
required: "<li>Please select Episode</li>",
 
}
});
});
});